package com.church.action;

import java.util.Map;

import com.church.db.User;
import com.church.services.UserServices;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class Logout extends ActionSupport {
	private UserServices userServices;

	public UserServices getUserServices() {
		return userServices;
	}

	public void setUserServices(UserServices userServices) {
		this.userServices = userServices;
	}

	public String execute() {

		ActionContext actionContext = ActionContext.getContext();
		Map session = actionContext.getSession();
		session.put("USER_NAME", null);
		session.put("USER_TYPE", null);
		session.put("USER_GROUP", null);
		session.put("USER_ID", null);

		return "success";
	}
}
